<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		var sum=0;
		for(var a=1;a<=100;a++){
			sum=sum+a;
		}
		document.write("当前总和为："+sum+"<br />");
	</script>
</html>